
<div class="x_panel">
  <div class="x_content row">
    <div class="col-xs-12">
      <form class="form-horizontal form-label-left" action="{$actionUrl}" method="post" enctype="multipart/form-data">
        <div class="form-group">
          <label class="control-label col-md-2 col-sm-4 col-xs-12">清单名称：</label>
          <div class="checkbox col-md-10 col-sm-8 col-xs-12">
            <input class="form-control col-md-3 col-xs-12" type="text" name="form[list_name]" value="{$storelist.list_name}">
          </div>

          <label class="control-label col-md-2 col-sm-4 col-xs-12">清单链接：</label>
          <div class="checkbox col-md-10 col-sm-8 col-xs-12">
            <input class="form-control col-md-3 col-xs-12" type="text" name="form[list_link]" value="{$storelist.list_link}">
          </div>

          <label class="control-label col-md-2 col-sm-4 col-xs-12">备注：</label>
          <div class="checkbox col-md-10 col-sm-8 col-xs-12">
            <input class="form-control col-md-3 col-xs-12" type="text" name="form[list_remark]" value="{$storelist.list_remark}">
          </div>

        </div>
        <div class="col-md-3 col-sm-12 col-xs-12 col-md-offset-4 col-sm-offset-4">
          <input name="store_list_id" type="hidden" value="{$storelist.store_list_id}">
          <button class="btn btn-primary" type="submit">更新</button>
        </div>
      </form>
    </div>
  </div>
</div>

<div class="x_panel">
<div class="x_content" style="display: block;">
  <div class="nav navbar-right panel_toolbox">
    <form action="/store/import-store.html?store_list_id={$storelist.store_list_id}" method="post" enctype="multipart/form-data">
      <input type="file" name="store_file">
      <button name="submit" value="import" type="submit" class="btn btn-primary" >导入</button>
    </form>
    <!--<a class="fa fa-plus" href="/store/import-store.html?store_list_id={$storelist.store_list_id}">导入门店</a>-->
    <a class="fa fa-plus" href="/store/add-store.html?store_list_id={$storelist.store_list_id}">添加门店</a>
  </div>
  <br><br>
  <!--表格主体内容-->
  <div class="cont">
    <table class="table table-bordered table-striped">
      <thead>
      <tr>
        <th>门店名称</th>
        <th>图片地址</th>
        <th>所属行业</th>
        <th>门店所在省</th>
        <th>门店所在市</th>
        <th>门店所在区</th>
        <th>门店详情地址</th>
        <th>经度</th>
        <th>纬度</th>
        <th>操作</th>
      </tr>
      </thead>
      <tbody>
      {foreach $store.lists as $storeitem}
      <tr>
        <td>{$storeitem.store_name}</td>
        <td>{$storeitem.store_pic}</td>
        <td>{$storeitem.industry}</td>
        <td>{$storeitem.province_name}</td>
        <td>{$storeitem.city_name}</td>
        <td>{$storeitem.district_name}</td>
        <td>{$storeitem.address}</td>
        <td>{$storeitem.longitude}</td>
        <td>{$storeitem.latitude}</td>
        <td>
          <div class="x_content">
            <a class="btn btn-primary btn-xs" href="{eval U(['store/edit-store','store_id'=>$storeitem.store_id])}"> 编辑</a>
            <button class="btn btn-danger btn-xs" data-toggle="dropdown">删除
              <i class="icon-angle-down"></i></button>
            <ul class="dropdown-menu">
              <li><a href="{eval U(['store/delete-store','store_id'=>$storeitem.store_id])}">确定</a></li>
              <li><a href="javascript:;">取消</a></li>
            </ul>
          </div>
        </td>
      </tr>
      {/foreach}
      </tbody>
    </table>
    <!--分页-->
    {Yii::$app->view->render('/com/pager.php',['pager'=>$store.pager])}
  </div>
</div>
</div>
